package com.aaa.controller.sds;

import com.aaa.entity.LayData;
import com.aaa.entity.sds.TSdsRecordDedtail;
import com.aaa.service.sds.TSdsRecordDedtailService;
import org.springframework.web.bind.annotation.*;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * (TSdsRecordDedtail)表控制层
 *
 * @author ZXJ
 * @since 2022-11-01 16:27:16
 */
@RestController
@RequestMapping("tSdsRecordDedtail")
public class TSdsRecordDedtailController {
    /**
     * 服务对象
     */
    @Autowired
    private TSdsRecordDedtailService tSdsRecordDedtailService;


    @PostMapping
    // @RequestBody 把json字符串转化为对象   参数前面
    public LayData insertDetail(@RequestBody List<TSdsRecordDedtail> details){
        return new LayData(tSdsRecordDedtailService.insertBatch(details));
    }

}

